package com.lening.collect.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class MenuVo {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "左侧菜单栏数据名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "详情")
    @TableField("detail")
    private String detail;

    @ApiModelProperty(value = "路径")
    @TableField("path")
    private String path;

    @ApiModelProperty(value = "页面文件夹所在路径")
    @TableField("file")
    private String file;

    @ApiModelProperty(value = "父子连接外键")
    @TableField("pid")
    private Long parentId;

    @TableField("create_id")
    private Long createId;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_id")
    private Long updateId;

    @TableField("update_time")
    private LocalDateTime updateTime;

    @TableField("deleted")
    private Integer deleted;

    @TableField("status")
    private Integer status;

    private List<MenuVo> children;

}
